package org.aurora.model.type;

public enum RequestCommandType {
    UNKNOWN(0, "未知"),
    /** 公共 start **/
    CONNECT(1, "连接"),
    /** 公共 end **/

    /** 客户端 start **/
    CLIENT_REPORT_TASK(10000, "客户端上报任务"),
    /** 客户端 end **/

    /** 调度器 start **/
    SCHEDULER_ASSIGN_HASH_SLOTS(20000, "调度器分配哈希槽"),
    EXECUTE_TASK(20001, "执行任务");
    /** 调度器 end **/

    private final int code;

    private final String desc;

    RequestCommandType(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public final int getCode() {
        return this.code;
    }

    public final String getDesc() {
        return desc;
    }
}
